package callstackintrospection;/*
  This is the first logger interface used in Chapter 5
 */

//start extract Logger
public interface Logger {
    // Types for log records
    public static final int ERROR = 0;
    public static final int WARNING = 100;
    public static final int STATUS = 200;
    public static final int DEBUG = 300;
    public static final int TRACE = 400;

    void logRecord(String className,
                   String methodName,
                   int lineNum,
                   String message,
                   int logRecordType);

    void logProblem(String className,
                    String methodName,
                    int lineNum,
                    Throwable problem);
}
//stop extract Logger
